package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.model.entity.DeviceConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AlarmDeviceConfigMapper extends BaseMapper<DeviceConfig> {

    /**
     * 根据设备IMEI号查询报警配置
     */
    @Select("SELECT * FROM device_config WHERE imei = #{deviceName}")
    DeviceConfig findAlarmConfigByDeviceName(String deviceName);
}